<?php



use Doctrine\ORM\Mapping as ORM;

/**
 * Media
 *
 * @ORM\Table(name="media")
 * @ORM\Entity
 */
class Media
{
    /**
     * @var integer
     *
     * @ORM\Column(name="med_id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $medId;

    /**
     * @var string
     *
     * @ORM\Column(name="med_name", type="string", length=45, nullable=false)
     */
    private $medName;

    /**
     * @var string
     *
     * @ORM\Column(name="med_code", type="string", length=8, nullable=false)
     */
    private $medCode;

    /**
     * @var string
     *
     * @ORM\Column(name="med_url", type="string", length=45, nullable=true)
     */
    private $medUrl;

    /**
     * @var string
     *
     * @ORM\Column(name="med_usu", type="string", length=45, nullable=true)
     */
    private $medUsu;

    /**
     * @var string
     *
     * @ORM\Column(name="med_description", type="string", length=500, nullable=true)
     */
    private $medDescription;

    /**
     * @var integer
     *
     * @ORM\Column(name="med_audit_create_date", type="bigint", nullable=false)
     */
    private $medAuditCreateDate;

    /**
     * @var \ItemDomain
     *
     * @ORM\ManyToOne(targetEntity="ItemDomain")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="med_type", referencedColumnName="itd_id")
     * })
     */
    private $medType;


    /**
     * Get medId
     *
     * @return integer 
     */
    public function getMedId()
    {
        return $this->medId;
    }

    /**
     * Set medName
     *
     * @param string $medName
     * @return Media
     */
    public function setMedName($medName)
    {
        $this->medName = $medName;
    
        return $this;
    }

    /**
     * Get medName
     *
     * @return string 
     */
    public function getMedName()
    {
        return $this->medName;
    }

    /**
     * Set medCode
     *
     * @param string $medCode
     * @return Media
     */
    public function setMedCode($medCode)
    {
        $this->medCode = $medCode;
    
        return $this;
    }

    /**
     * Get medCode
     *
     * @return string 
     */
    public function getMedCode()
    {
        return $this->medCode;
    }

    /**
     * Set medUrl
     *
     * @param string $medUrl
     * @return Media
     */
    public function setMedUrl($medUrl)
    {
        $this->medUrl = $medUrl;
    
        return $this;
    }

    /**
     * Get medUrl
     *
     * @return string 
     */
    public function getMedUrl()
    {
        return $this->medUrl;
    }

    /**
     * Set medUsu
     *
     * @param string $medUsu
     * @return Media
     */
    public function setMedUsu($medUsu)
    {
        $this->medUsu = $medUsu;
    
        return $this;
    }

    /**
     * Get medUsu
     *
     * @return string 
     */
    public function getMedUsu()
    {
        return $this->medUsu;
    }

    /**
     * Set medDescription
     *
     * @param string $medDescription
     * @return Media
     */
    public function setMedDescription($medDescription)
    {
        $this->medDescription = $medDescription;
    
        return $this;
    }

    /**
     * Get medDescription
     *
     * @return string 
     */
    public function getMedDescription()
    {
        return $this->medDescription;
    }

    /**
     * Set medAuditCreateDate
     *
     * @param integer $medAuditCreateDate
     * @return Media
     */
    public function setMedAuditCreateDate($medAuditCreateDate)
    {
        $this->medAuditCreateDate = $medAuditCreateDate;
    
        return $this;
    }

    /**
     * Get medAuditCreateDate
     *
     * @return integer 
     */
    public function getMedAuditCreateDate()
    {
        return $this->medAuditCreateDate;
    }

    /**
     * Set medType
     *
     * @param \ItemDomain $medType
     * @return Media
     */
    public function setMedType(\ItemDomain $medType = null)
    {
        $this->medType = $medType;
    
        return $this;
    }

    /**
     * Get medType
     *
     * @return \ItemDomain 
     */
    public function getMedType()
    {
        return $this->medType;
    }
}
